package com.kaba.xtzhgl.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kaba.bean.SysMenu;
import com.kaba.bean.SysUser;
import com.kaba.xtzhgl.mapper.SysUserMapper;
import com.kaba.xtzhgl.service.SysUserService;
import org.aspectj.runtime.internal.cflowstack.ThreadStackImpl11;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;


/**
 * @Author lvmengjie
 * @Date 2021/3/4
 * @Description TODO
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Autowired
    SysUserService sysUserService;

    @Override
    public List<SysUser> queryUserName(SysUser sysUser) {
        return this.baseMapper.queryUserName(sysUser);

    }

    @Override
    public List<SysUser> zhcx(SysUser sysUser) {
        return this.baseMapper.zhcx(sysUser);
    }

    @Override
    public List<SysUser> queryByid(Integer userId) {
        return this.baseMapper.queryByid(userId);
    }

    @Override
    public void saveSysUser(SysUser sysUser) {
        this.baseMapper.saveSysUser(sysUser);
    }

    @Override
    public List<SysUser> querydeptId(Integer deptId) {
        return this.baseMapper.querydeptId(deptId);
    }

    @Override
    public List<SysUser> queryUser() {
        return this.baseMapper.queryUser();
    }


    @Override
    public SysUser queryByName(String userName) {
        return this.baseMapper.queryByName(userName);
    }


}
